package com.jyxd.web.hiscz.dto.checkout_report.order_detail;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.jyxd.web.hiscz.dto.checkout_report.order_detail.interval.IntervalDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("数量/时间")
@Data
public class QuantityTimingDto {

    @JsonProperty(value = "Quantity")
    @ApiModelProperty(name = "剂量数量")
    private String quantity;

    @JsonProperty(value = "Units")
    @ApiModelProperty(name = "剂量单位")
    private String units;

    @JsonProperty(value = "Interval")
    @ApiModelProperty(name = "频率")
    private IntervalDto interval;

    @JsonProperty(value = "StartDT")
    @ApiModelProperty(name = "医嘱开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startDT;

    @JsonProperty(value = "EndDT")
    @ApiModelProperty(name = "医嘱结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endDT;

    @JsonProperty(value = "Duration")
    @ApiModelProperty(name = "持续时间(用药天数)")
    private String duration;

    @JsonProperty(value = "TotalQuantity")
    @ApiModelProperty(name = "总数量")
    private String totalQuantity;

    @JsonProperty(value = "TotalExecutiveFrequency")
    @ApiModelProperty(name = "执行次数")
    private String totalExecutiveFrequency;
}
